<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ page import="java.util.*" %>
<%@ page import="model.service.ServiceRequest" %>
<jsp:useBean id="requests" scope="request" type="ArrayList<model.service.ServiceRequest>" />

<%@ include file="html_head.jsp" %>

<body>
	<%@ include file="menu.jsp" %>

	<h1>Minu "ServiceRequest" nimekiri</h1>
	<table border="1">
	<% 
	if (requests.size() > 0) {
		for (ServiceRequest sr : requests) {
			%>
			<tr>
				<td><a href="?action=service&task=get_request&id=<%=sr.getRequest()%>"><%=sr.getEmployeeDescription() %></a></td>
			</tr>
			<%
		}
	}	
	%>
	</table>
	
</body>
</html>